package com.mxy.myapplication.pojo;

import android.os.Parcel;
import android.os.Parcelable;

public class Pojo2  implements Parcelable{

  private int hight;

  public Pojo2(int hight) {
    this.hight = hight;
  }

  private Pojo2(Parcel in) {
    hight = in.readInt();
  }

  public static final Creator<Pojo2> CREATOR = new Creator<Pojo2>() {
    @Override
    public Pojo2 createFromParcel(Parcel in) {
      return new Pojo2(in);
    }

    @Override
    public Pojo2[] newArray(int size) {
      return new Pojo2[size];
    }
  };

  public int getHight() {
    return hight;
  }

  public void setHight(int hight) {
    this.hight = hight;
  }

  @Override
  public int describeContents() {
    return 0;
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(hight);
  }
}
